package com.bian.springboot02config.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bianpengfei
 * @create 2019-01-25 17:55
 **/
@RestController
public class HelloController {

    @Value("${person.last-name}")
    private String hello;

    @RequestMapping(value="/sayHello", method = RequestMethod.POST)
    public String sayHello() {
        return hello;
    }

}
